<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<jsp:include page="helpers/layout_header.jsp"></jsp:include>

<%-- body --%>
<c:choose>
	<c:when test="${sessionScope.usuario.tipo eq 'ADMIN' }">
		<jsp:include page="helpers/header_admin.jsp" />
	</c:when>
	<c:otherwise>
		<jsp:include page="helpers/header_usuario.jsp" />
	</c:otherwise>
</c:choose>

<div id="div-home" class="row container">
	<h1>Bem vindo ao Dashboard, ${sessionScope.usuario.nomeCompleto}!</h1>
	<p>Nesta sessão é possível ver um resumo das vendas.</p>
	
	<div class="row">
		<div class="large-6 columns">
			<div class="panel">
				<h5>Todal de vendas no dia</h5>
				<p>R$ <c:out value="${totalVendasDia }" /></p>
			</div>
		</div>
		
		<div class="large-6 columns">
			<div class="panel">
				<h5>Todal de vendas no mês</h5>
				<p>R$ <c:out value="${totalVendasMes }" /></p>
			</div>
		</div>
	</div>
	
</div>

<%-- /body --%>

<jsp:include page="helpers/layout_footer.jsp"></jsp:include>

<script type="text/javascript" src="resources/js/views/index.js" ></script>